-
Notifications
You must be signed in to change notification settings - Fork 92
fix(core): close AdvancedExtension serde gaps #569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I'm working on adding more tests to verify the serialization/deserialization for each relation type |
Signed-off-by: Niels Pardon <[email protected]>
Signed-off-by: Niels Pardon <[email protected]>
339128f to
ccb6091
Compare
this is done. ready for review |
core/src/main/java/io/substrait/relation/ProtoRelConverter.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Niels Pardon <[email protected]>
| protected Rel newWrite(final WriteRel rel) { | ||
| final WriteRel.WriteTypeCase relType = rel.getWriteTypeCase(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, why did you add the final modifier to the Write/Update/DDL relations, but not all the other relations that use this same code pattern?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mainly did it for the code I thought I touched to not introduce too many unrelated changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see what you mean, let me update the PR to be a little more consistent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be more consistent now
Signed-off-by: Niels Pardon <[email protected]>
3c4983c to
b663112
Compare
* fix(core): close AdvancedExtension serde gaps Signed-off-by: Niels Pardon <[email protected]> * fix: add test cases Signed-off-by: Niels Pardon <[email protected]> * fix: address comments Signed-off-by: Niels Pardon <[email protected]> * fix: more consistent final declaration in changed code Signed-off-by: Niels Pardon <[email protected]> --------- Signed-off-by: Niels Pardon <[email protected]>
I noticed there are multiple gaps in the serialization and deserialization of `AdvancedExtension which I'm trying to close with this PR:
PlanProtoConverterpassExtensionProtoConvertertoRelProtoConverterProtoPlanConverterpassProtoExtensionConvertertoProtoRelConverterHasExtensioninterface toAbstractDdlRel,AbstractWriteRelRelProtoConverter,ProtoRelConverter